package com.epam.cdp.selenium2.core.ui.elements;

import com.epam.cdp.selenium2.core.results.logger.Logger;
import com.epam.cdp.selenium2.core.ui.locators_map.ElementInfoContainer;

/**
 * @author akhachaturan
 */
public class Input extends Element
{
  public Input( ElementInfoContainer container )
  {
    super( container );
  }

  public void typeValue( String value )
  {
    initElement();
    Logger.operation( "Type value '" + value + "' to Input '" + elementInfoContainer.getName() + "'" );
    element.sendKeys( value );
  }

  public void clearInput()
  {
    initElement();
    Logger.operation( "Clear Input '" + elementInfoContainer.getName() + "'" );
    element.clear();
  }
}